Ubuntu 16.04
Sponsored Link

mod_proxy Setting#1
2016/06/15
 
Enable mod_proxy module to configure forward proxy settings.
[1] mod_proxy is included in apache2 package by default, so it's possible to configure quickly.
root@www:~#
a2enmod proxy proxy_http proxy_connect

root@www:~#
vi /etc/apache2/mods-enabled/proxy.conf
# line 13-19: uncoment and change like follows

ProxyRequests On
# add
ProxyVia On
AllowCONNECT 80 443
<Proxy *>
    AddDefaultCharset off
    Require all denied
    Require local
    # add access permission
    Require ip 127.0.0.1 10.0.0.0/24
</Proxy>

root@www:~#
vi /etc/apache2/ports.conf
# line 5: change to listening port

Listen
3128
root@www:~#
systemctl restart apache2
[2]
Configure Proxy client setiings on a Client and make sure it's possible to access to any websites normally.
 
Tweet